// https://nuxt.com/docs/api/configuration/nuxt-config
import { resolve } from "path";
export default defineNuxtConfig({
  app: {
    baseURL: process.env.NODE_ENV === 'development' ? '/' : '/nuxt-web/',
    buildAssetsDir: 'nuxt-web',
    head: {
      meta: [
        { charset: 'utf-8' },
        { name: 'format-detection', content: 'telephone=no' },
        { name: 'viewport', content: 'width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0' }
      ],
    }
  },
  modules: ['nuxt-swiper', '@vueuse/nuxt', '@element-plus/nuxt'],
  devtools: { enabled: true },
  alias: {
    "@": resolve(__dirname, ""),
  },
  ssr: true,
  css: [
  ],
  plugins: [
    '~/plugins/vue-dompurify-html.js'
  ],
  devServer: {
    host: '0.0.0.0',
    port: 3000
  },
})
